package com.face.managesystem.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 用户人脸信息 表。
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class FaceEntry {
    /**
     * 员工编号
     */
    private String userID;
    /**
     * 注册时间
     */
    private Date registerDate;
    private static final DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    /**
     * 员工人脸唯一ID
     */
    private String userFaceID;

    public String getRegisterDate() {
        return df.format(registerDate);
    }

    @Override
    public String toString() {
        return "FaceEntry{" +
                "userID='" + userID + '\'' +
                ", registerDate=" + registerDate +
                ", userFaceID='" + userFaceID + '\'' +
                '}';
    }
}
